package com.android.order.activity;

import com.android.order.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Spinner;

/*
 * first  : init two spiner values table_num
 * second : add listen for yes button and cancel button
 */
public class ChangeTableActivity extends Activity {
	/** Definations */
	private Spinner startSpinner;
	private Spinner distSpinner;
	private Button okButton,cancelButton;
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.changetable);
        initCtrl();
    }
    private void initCtrl()
    {
    	startSpinner=(Spinner)findViewById(R.id.change_table_start_Spinner);
    	distSpinner=(Spinner)findViewById(R.id.change_table_dist_Spinner);
    	okButton=(Button)findViewById(R.id.change_table_ok_Button);
    	okButton.setOnClickListener(okListener);
    	cancelButton=(Button)findViewById(R.id.change_table_cancel_Button);
    	cancelButton.setOnClickListener(cancelListener);
    }
    
    OnClickListener okListener=new OnClickListener() {
		
		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			
		}
	};
	
	OnClickListener cancelListener=new OnClickListener() {
		
		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			finish();
		}
	};
}
